#include "DeathListener.h"
#include "DeathEvent.h"
#include "BaseObject.h"

DeathListener::DeathListener(void)
{

}


DeathListener::~DeathListener(void)
{

}

bool DeathListener::handleEvent(IGameEvent const &event)
{
	const DeathEvent &evt = static_cast<const DeathEvent&>(event);

	boost::shared_ptr<Actor> dead = evt.mpActor;
	dead->kill();

	cout << "somebody just died." << endl;
	
	return true;
}